//
//  TimeInterval+Extension.swift
//  LiveTrivia
//
//  Created by 李响 on 2018/10/15.
//  Copyright © 2018 LiveTrivia. All rights reserved.
//

import Foundation

extension TimeInterval {
    
    func to1970() -> Date {
        return Date(timeIntervalSince1970: self)
    }
    
    func toNow() -> Date {
        return Date(timeIntervalSinceNow: self)
    }
}
